package com.ssy.lingxi.order.model.vo.basic.response;

import org.springframework.util.StringUtils;

import java.io.Serializable;

/**
 * 订单交付信息
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-19
 */
public class OrderConsigneeDetailVO implements Serializable {
    private static final long serialVersionUID = 6455021469041659314L;

    public OrderConsigneeDetailVO(String deliverDate) {
        this.deliverDate = StringUtils.hasLength(deliverDate) ? deliverDate : "";
        this.consigneeId = 0L;
        this.consignee = "";
        this.areaName = "";
        this.provinceCode = "";
        this.cityCode = "";
        this.districtCode = "";
        this.address = "";
        this.countryCode = "";
        this.phone = "";
        this.defaultConsignee = false;
    }

    public OrderConsigneeDetailVO() {
        this.deliverDate = "";
        this.consigneeId = 0L;
        this.consignee = "";
        this.areaName = "";
        this.provinceCode = "";
        this.cityCode = "";
        this.districtCode = "";
        this.address = "";
        this.countryCode = "";
        this.phone = "";
        this.defaultConsignee = false;
    }

    /**
     * 交付日期，格式为yyyy-MM-dd，或yyyy-MM-dd HH:mm，或yyyy-MM-dd HH:mm-HH:mm
     */
    private String deliverDate;

    /**
     * 收货人Id
     */
    private Long consigneeId;

    /**
     * 收货人姓名
     */
    private String consignee;

    /**
     * 省市区街道（名称拼接）
     */
    private String areaName;

    /**
     * 省编码
     */
    private String provinceCode;

    /**
     * 市编码
     */
    private String cityCode;

    /**
     * 区编码
     */
    private String districtCode;

    /**
     * 街道编码
     */
    private String streetCode;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 国家编码（手机号码前缀）
     */
    private String countryCode;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 是否默认, true-是，false-否
     */
    private Boolean defaultConsignee;

    public String getDeliverDate() {
        return deliverDate;
    }

    public void setDeliverDate(String deliverDate) {
        this.deliverDate = deliverDate;
    }

    public Long getConsigneeId() {
        return consigneeId;
    }

    public void setConsigneeId(Long consigneeId) {
        this.consigneeId = consigneeId;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getDistrictCode() {
        return districtCode;
    }

    public void setDistrictCode(String districtCode) {
        this.districtCode = districtCode;
    }

    public String getStreetCode() {
        return streetCode;
    }

    public void setStreetCode(String streetCode) {
        this.streetCode = streetCode;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Boolean getDefaultConsignee() {
        return defaultConsignee;
    }

    public void setDefaultConsignee(Boolean defaultConsignee) {
        this.defaultConsignee = defaultConsignee;
    }
}
